package com.kaka.mapper;

import com.kaka.javabean.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface UserMapper {

    List<User> selectAll();

    @Update("update user set username=#{username} where id=#{id}")
    int updateUserNameById(@Param("id") int id, @Param("username") String username);

    @Update("update user set password=#{password} where id=#{id}")
    int updatePasswordById(@Param("id") int id, @Param("password") String password);
}
